package com.xiaoyu.activitispringboot;

import lombok.extern.slf4j.Slf4j;
import org.activiti.api.process.runtime.connector.Connector;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframework.context.annotation.Bean;

@SpringBootApplication(exclude = SecurityAutoConfiguration.class)
@Slf4j
public class ActivitiSpringbootApplication {

    public static void main(String[] args) {
        SpringApplication.run(ActivitiSpringbootApplication.class, args);
    }


    @Bean
    public Connector testConnector() {
        return integrationContext -> {
            log.info("连接器被调用~");
            return integrationContext;
        };
    }
}
